package shopping.mode;

/**
 * 优惠券
 */
public class DiscountCoupon {
    private String discountNo;
    private String userId;
    private String name;
    // 优惠金额
    private double price;
    /**
     * 是否有效
     */
    private boolean isActive;
    /**
     * 有效日期
     */
    private String startDate;
    /**
     * 结束日期
     */
    private String endDate;
    /**
     * 商家
     */
    private String storeId;
    /**
     * 优惠券类型
     */
    private String type;
    /**
     * 描述
     */
    private String desc;

    public DiscountCoupon() {
    }

    public DiscountCoupon(String discountNo, String userId, String name, double price, boolean isActive, String startDate, String endDate, String storeId, String type, String desc) {
        this.discountNo = discountNo;
        this.userId = userId;
        this.name = name;
        this.price = price;
        this.isActive = isActive;
        this.startDate = startDate;
        this.endDate = endDate;
        this.storeId = storeId;
        this.type = type;
        this.desc = desc;
    }

    public String getDiscountNo() {
        return discountNo;
    }

    public void setDiscountNo(String discountNo) {
        this.discountNo = discountNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public boolean isActive() {
        return isActive;
    }

    public void setActive(boolean active) {
        isActive = active;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
